﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x02000073 RID: 115
	internal class Map32Header : IMapHeaderDecoder
	{
		// Token: 0x0600021C RID: 540 RVA: 0x0000B0E7 File Offset: 0x000094E7
		private Map32Header()
		{
		}

		// Token: 0x0600021D RID: 541 RVA: 0x0000B0EF File Offset: 0x000094EF
		public uint Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 5;
			return (uint)((int)bytes[offset + 1] << 24 | (int)bytes[offset + 2] << 16 | (int)bytes[offset + 3] << 8 | (int)bytes[offset + 4]);
		}

		// Token: 0x0400009E RID: 158
		internal static readonly IMapHeaderDecoder Instance = new Map32Header();
	}
}
